#include <bits/stdc++.h>
using namespace std;
int n,k;
int atk[100000+10],sbl[100000+10];
int main(){
        freopen("duel.in","r",stdin);
        freopen("duel.out","w",stdout);
        cin>>n;
        for(int i=1;i<=n;i++)
        {
                int a;
                cin>>a;
                if(atk[a]==0)
                {
                   sbl[k]=a;
                   k++;     
                }
                atk[a]++;
        }
        sort(sbl,sbl+k);
       for(int i=0;i<k-1;i++)
       {
               int m;
               if(atk[sbl[i]]>atk[sbl[i+1]])
               {
                       n-=atk[sbl[i+1]];
                       atk[sbl[i+1]]+=atk[sbl[i]]-atk[sbl[i+1]];
               }
               else{
                       n-=atk[sbl[i]];
               }
               
       }
       cout<<n;
        return 0;
}
